package com.example.demo.service.impl;

import com.example.demo.domain.Staff;
import com.example.demo.mapper.StaffMapper;
import com.example.demo.service.StaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StaffServiceimpl implements StaffService {

    @Autowired
    StaffMapper  staffMapper;

    //查询所有员工
    @Override
    public List<Staff> findAllStaff() {
        return staffMapper.findAllStaff();
    }

    //删除员工
    @Override
    public int deleteStaff(Integer id){
        return staffMapper.deleteStaff(id);
    }
}
